import request from '@/utils/request'

let BASE_ADDRESS = '/doc/qa'


//分页查询
export const getQaListAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}

//添加
export const getQaAddAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: 'post',
        data
    })
}

//修改
export const getQaEditAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: 'post',
        data
    })
}

//id查询
export const getQaGetInfoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: 'get',
        params: data
    })
}
// 删除问答
export const getQaRemoveAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove`,
        method: 'delete',
        data
    })
}